import request from '@/utils/request'
// 注册接口
export function userRegisterService({ username, password, repassword }) {
  return request.post('/api/reg', { username, password, repassword })
}

// 登录接口
export function userLoginService({ username, password }) {
  return request.post('/api/login', {
    username,
    password,
  })
}
// 获取用户基本信息
export function userGetInfoService() {
  return request('/my/userinfo')
}
